﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tomato.Text
{
    public static class TextConversion
    {
        public static string ToHexString(byte[] bytes)
        {
            StringBuilder b = new StringBuilder();

            foreach (byte c in bytes)
            {
                b.Append(c.ToString("x2").ToLower());
            }

            return b.ToString();
        }


    }
}
